<?php
namespace Admin\Controller;
use Think\Controller;

/**
 * 基础类，用于判定用户是否登录
 * @author wf
 *
 */
class BaseCompanyController extends Controller {
	protected function _initialize(){
		$temp=array("login","verify","check_verify","logout");
	  if($_SESSION['company']==NULL && !in_array(ACTION_NAME,$temp))
        {
        	redirect(U('coupon/login'));
        }
	}
}